ActionView::TemplateError (integer 23656121084180 too big to convert to `unsigned int')

Posted by jaycode on Stack Overflow See other posts from Stack Overflow or by jaycode
Published on 2010-03-22T14:37:20Z Indexed on 2010/03/22 14:41 UTC
Read the original article Hit count: 425

Filed under:
|

Hi, this is the weirdest error I've ever got on Rails. Any idea what this may be is?

NOTE: the error DOES NOT come from @order.get_invoice_number, I've tried to separate the code into multiple lines and it was clear the problem is within {:host... }

    ActionView::TemplateError (integer 23656121084180 too big to convert to `unsigned int') on line #56 of app/views/order_mailer/order_detail.text.html.erb:
    53:                 <b>Order #:</b>
    54:               </td>
    55:               <td width="98%">
    56:                   <%= link_to "#{@order.get_invoice_number}", {:host => Thread.current[:host], :controller => 'store/account', :action => 'view_order', id => "#{@order.id}"}, {:target => '_blank'} %>
    57:               </td>
    58:             </tr>
    59:             <tr>

        app/views/order_mailer/order_detail.text.html.erb:56
        app/controllers/store/

test_controller.rb:11:in `order_email'

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about error